package com.ai.web.vo;

import lombok.Data;

@Data
public final class ResultModel {
	
	private static final int SUCCESS_CODE = 20011011;
	private static final int FAIL_CODE = 50011011;
	private static final int NOT_EXIST_CODE = 40411011;
	
	private String msg;
	private int statusCode;
	private Object data;
	
	public void setSuccessCode() {
		this.statusCode = SUCCESS_CODE;
	}
	
	public void setFailCode() {
		this.statusCode = FAIL_CODE;
	}
	
	public void setNotExistCode() {
		this.statusCode = NOT_EXIST_CODE;
	}
	
	
	
}
